import request from '@/utils/request'

export function findAllUserlistPage(page) {
  return request({
    url: '/findAllUserlistPage',
    method: 'post',
    data: {
      currentPage: page.currentPage,
      currentResult: 0,
      entityOrField: true,
      pageStr: 'string',
      pd: {
        yhm: page.pd.yhm
      },
      showCount: page.showCount,
      totalPage: 0,
      totalResult: 0
    }
  })
}
/**通过token获取用户信息**/
export function getUserinfo() {
  return request({
    url: '/info',
    method: 'post'

  })
}
export function addUser(params) {
  return request({
    url: '/addUser',
    method: 'post',
    data: {
      params
    }
  })
}

export function editUser(params) {
  return request({
    url: '/editUser',
    method: 'post',
    data:params,
  })
}


export function delUser(params) {
  return request({
    url: '/delUser',
    method: 'post',
    data:params,
  })
}
/**修改密码**/
export function changePassword(params) {
  return request({
    url: '/changePassword',
    method: 'post',
    data:params,
  })
}
